package com.jingdianjichi.subject.infra.basic.ES.自定义ES_鸡翅.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * 希望把我们的集群类,通过配置文件赋值进去
 */
@Data
@Component
@ConfigurationProperties(prefix = "es.cluster")   //读取我们自定义的配置文件亲
public class ESConfigProperties {
    private List<ESClusterConfig> esClusterConfigs=new ArrayList<>();


}
